package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Course implements Serializable {
    @Serial
    private static final long serialVersionUID = 1928285766347867842L;

    // 主键
    private Integer id;

    // 课程名称
    private String name;
    //  学生列表
    private List<Student> students;

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
